package com.oplink.webbase.modules.sys.dto;

/**
 * 
 * Title: 处理结果实体
 * Description:
 * Copyright: Copyright (c) 2014
 * Company: Oplink Communications
 * 
 * @author
 * @serialData 2014-9-24 下午4:31:25
 * @version 1.0
 */

public class RespDTO {
	final public static String SUCCESS = "1";
	final public static String ERROR = "0";
	private String result;
	private String message;
	private static RespDTO inst = new RespDTO(ERROR, MsgDTO.ERR_SAVE_FAILURE);

	public RespDTO(String result, String message) {
		super();
		this.result = result;
		this.message = message;
	}

	public static RespDTO createInst() {
		return inst;
	}

	public String getResult() {
		return result;
	}

	public void setResult(String result, String message) {
		this.result = result;
		this.message = message;
	}

	public void setResult(String result) {
		this.result = result;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}
